﻿using System;

namespace Confcloud.Email.Templates
{
	public class UnsubscribeUserEmail : EmailQueue<Confcloud.Email.Templates.UnsubscribeUserEmail>
	{
		public new const string TemplateName = "UnsubscribeUser";

		private readonly string _email;

		public UnsubscribeUserEmail(string email)
			: base(TemplateName)
		{
			_email = email;
		}


		#region Overrides of RestObject<ParticipantActivationEmail>

		public override Confcloud.Email.Templates.UnsubscribeUserEmail Get()
		{
			throw new NotImplementedException();
		}

		public override Confcloud.Email.Templates.UnsubscribeUserEmail Post()
		{
			base.Recipent = string.Format("{0}", _email);
			return base.Post();
		}

		public override Confcloud.Email.Templates.UnsubscribeUserEmail Put()
		{
			throw new NotImplementedException();
		}

		public override Confcloud.Email.Templates.UnsubscribeUserEmail Delete()
		{
			throw new NotImplementedException();
		}

		#endregion
	}
}